package com.workManager.mapper;

import com.workManager.pojo.TbProcurement;
import com.workManager.pojo.TbProcurementExample;
import com.workManager.vo.ProcurementVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface TbProcurementMapper {
    int countByExample(TbProcurementExample example);

    int deleteByExample(TbProcurementExample example);

    int deleteByPrimaryKey(Integer procurementId);

    int insert(TbProcurement record);

    int insertSelective(TbProcurement record);

    List<TbProcurement> selectByExample(TbProcurementExample example);

    TbProcurement selectByPrimaryKey(Integer procurementId);

    int updateByExampleSelective(@Param("record") TbProcurement record, @Param("example") TbProcurementExample example);

    int updateByExample(@Param("record") TbProcurement record, @Param("example") TbProcurementExample example);

    int updateByPrimaryKeySelective(TbProcurement record);

    int updateByPrimaryKey(TbProcurement record);

    List<ProcurementVo> query(@Param("cm")Map map);
}